﻿<controls:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
	x:Class="MySemanticSearch.FileTablePage" Title="Create a FileTable" mc:Ignorable="d" d:DesignHeight="266" d:DesignWidth="253" IsEnabled="{Binding IsPageEnabled}" >

    <Grid Name="MainGrid" HorizontalAlignment="Left" Width="236" Height="232" VerticalAlignment="Top" Background="White">
        <Border BorderBrush="Black" BorderThickness="1" Height="231" VerticalAlignment="Top" HorizontalAlignment="Left" Width="235" />
        <Grid Margin="7,8,0,0" Height="218" VerticalAlignment="Top" HorizontalAlignment="Left" Width="222">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid HorizontalAlignment="Left" Width="222">
                <Rectangle Height="186" Style="{StaticResource ResourceKey=BackgroundRectangle}" Fill="{StaticResource ResourceKey=RectangleLinearGradientBrush}" HorizontalAlignment="Left" Width="222" />
                <ComboBox ToolTipService.ToolTip="Select an existing database" ItemsSource="{Binding Databases}" SelectedItem="{Binding SelectedDatabase, Mode=TwoWay}" IsEnabled="{Binding IsDatabaseSelectionEnabled}" Style="{StaticResource ResourceKey=ComboBoxStyle}" VerticalAlignment="Top" Margin="6,28,0,0" HorizontalAlignment="Left" Width="210" TabIndex="1" />
                <sdk:Label FontWeight="Normal" Style="{StaticResource ResourceKey=StatusLabel}" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment" Margin="6,6,0,0" Content="Database" Width="59" Foreground="#FF083C63"/>
                <sdk:Label FontWeight="Normal" Style="{StaticResource ResourceKey=StatusLabel}" VerticalAlignment="Top" Margin="7,132,0,0" Content="File Table name" Width="93" Foreground="#FF083C63" d:LayoutOverrides="HorizontalAlignment"/>
                <TextBox Name="FtNameTextBox" ToolTipService.ToolTip="Write a name for creating a new FileTable" Text="{Binding FileTableName, Mode=TwoWay}"  Style="{StaticResource SearchTextBoxTemplate}" VerticalAlignment="Top" Margin="7,154,0,0" HorizontalAlignment="Left" Width="209" TabIndex="4" />
                <TextBox Name="DbNameTextBox" ToolTipService.ToolTip="Write a name for creating a new database" Text="{Binding DatabaseName, Mode=TwoWay}" IsEnabled="{Binding IsDatabaseTextEnabled}" Style="{StaticResource SearchTextBoxTemplate}" VerticalAlignment="Top" Margin="6,102,0,0" HorizontalAlignment="Left" Width="209" TabIndex="3" />
                <CheckBox ToolTipService.ToolTip="Check to allow creating a new database" Content="Create a new database" IsChecked="{Binding IsCreateDatabaseChecked, Mode=TwoWay}" Height="20" Margin="7,54,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="151" Foreground="#FF083C63" TabIndex="2" />
                <sdk:Label FontWeight="Normal" Style="{StaticResource ResourceKey=StatusLabel}" VerticalAlignment="Top" Margin="7,80,0,0" Content="Database name" Width="93" Foreground="#FF083C63" d:LayoutOverrides="HorizontalAlignment"/>
                <sdk:Label FontWeight="Normal" Style="{StaticResource ResourceKey=StatusLabel}" VerticalAlignment="Top" Margin="0,6,7,0" Content="{Binding InformationMessage}" Width="151" Foreground="Red" d:LayoutOverrides="HorizontalAlignment" Height="19" HorizontalAlignment="Right" />
            </Grid>
            <Grid Grid.Row="1" HorizontalAlignment="Left" Width="222">
                <Button Content="Create" Style="{StaticResource MainButtonStyle}" HorizontalAlignment="Left" Width="128" Height="31" VerticalAlignment="Top" Command="{Binding CreateFileTableCommand}" Margin="53,0,0,0" TabIndex="5" />
            </Grid>
        </Grid>
    </Grid>
</controls:ChildWindow>
